#include <iostream>
using namespace std;
void main()
{
int const size=10;
int mas [size];
int sum=0;
int sum2=0;
	for(int i=0;i<size;i++)
	{
		cin>>mas[i];
	}
	for(int k=0;k<size;k++)
	{
		if(mas[k]%2==0)
		{sum+=mas[k];}
		else
		{sum2+=mas[k];}
		
	}
	cout<<"summa chetnih = "<<sum<<"\n";
	cout<<"summa ne chetnih = "<<sum2<<"\n";
}
